package com.m1905.lib.download.model;


import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@IntDef({State.WAITING, State.STARTED, State.LOADING, State.FAILURE, State.CANCELLED, State.SUCCESS, State.DELETE})
@Retention(RetentionPolicy.SOURCE)
public @interface State {
    int WAITING = 1;
    int STARTED = 2;
    int LOADING = 4;
    int FAILURE = 8;
    int CANCELLED = 16;
    int SUCCESS = 32;
    int DELETE = 64;
}